﻿


/*========================================================================================
//Goodasong -- MySnake
//创建者: 郑雪松
//创建时间：2013年3月4日
//类描述：实体类 Equip_Online (属性说明自动提取数据库字段的描述信息)
//最后修改者:郑雪松
//最后修改时间:2013年3月4日	
=========================================================================================*/
using System;
using System.Web;
using System.Runtime.Serialization;

namespace COM.PreAlarm.Model
{
    /// <summary>
    /// 实体类 Equip_Online (属性说明自动提取数据库字段的描述信息)
    /// </summary>
    [Serializable]	  
    [Model(Name = "Equip_Online", PrimaryKey = "Equip_No", ModelType = ModelType.Table, Condition = "1=1", IsNeedRecordModify = true)]
    public partial class Equip_OnlineInfo : BaseModel
    {
        public Equip_OnlineInfo()
        {            
            PrimaryKey = "Equip_No"; 
			Fields.Add("Equip_No");//设备编号
			Fields.Add("Rpt_DateTime");//在线日期
			Fields.Add("Online_00");//Online_00
			Fields.Add("Online_01");//Online_01
			Fields.Add("Online_02");//Online_02
			Fields.Add("Online_03");//Online_03
			Fields.Add("Online_04");//Online_04
			Fields.Add("Online_05");//Online_05
			Fields.Add("Online_06");//Online_06
			Fields.Add("Online_07");//Online_07
			Fields.Add("Online_08");//Online_08
			Fields.Add("Online_09");//Online_09
			Fields.Add("Online_10");//Online_10
			Fields.Add("Online_11");//Online_11
			Fields.Add("Online_12");//Online_12
			Fields.Add("Online_13");//Online_13
			Fields.Add("Online_14");//Online_14
			Fields.Add("Online_15");//Online_15
			Fields.Add("Online_16");//Online_16
			Fields.Add("Online_17");//Online_17
			Fields.Add("Online_18");//Online_18
			Fields.Add("Online_19");//Online_19
			Fields.Add("Online_20");//Online_20
			Fields.Add("Online_21");//Online_21
			Fields.Add("Online_22");//Online_22
			Fields.Add("Online_23");//Online_23
			Fields.Add("Online_Total");//Online_Total
			Fields.Add("Ext");//Ext
			
			
			CanNotNullFields.Add("Equip_No");//设备编号不能为空!				
			
			CanNotNullFields.Add("Rpt_DateTime");//在线日期不能为空!				
			this.OnCreated();			
			this.OnModelCreated();
        }
		public Equip_OnlineInfo(bool isNewInfo):this()
        {
			IsNew = isNewInfo;
		}
		#region 方法

        public void OnCreated() { this.SetPrimaryKeyValue(); }		

		public override void SetPrimaryKeyValue()
        {
			
        }
        #endregion 
		
		#region 成员变量
				
		private string _Equip_No;//设备编号
		private string _Rpt_DateTime;//在线日期
		private byte _Online_00;//Online_00
		private byte _Online_01;//Online_01
		private byte _Online_02;//Online_02
		private byte _Online_03;//Online_03
		private byte _Online_04;//Online_04
		private byte _Online_05;//Online_05
		private byte _Online_06;//Online_06
		private byte _Online_07;//Online_07
		private byte _Online_08;//Online_08
		private byte _Online_09;//Online_09
		private byte _Online_10;//Online_10
		private byte _Online_11;//Online_11
		private byte _Online_12;//Online_12
		private byte _Online_13;//Online_13
		private byte _Online_14;//Online_14
		private byte _Online_15;//Online_15
		private byte _Online_16;//Online_16
		private byte _Online_17;//Online_17
		private byte _Online_18;//Online_18
		private byte _Online_19;//Online_19
		private byte _Online_20;//Online_20
		private byte _Online_21;//Online_21
		private byte _Online_22;//Online_22
		private byte _Online_23;//Online_23
		private byte _Online_Total;//Online_Total
		private string _Ext;//Ext
		
		#endregion
		
		#region 属性 
		
		/// <summary>
        /// 设备编号
        /// </summary>       
		[ModelField(Description = "设备编号", Type = typeof(string), ErrorMessage = "设备编号信息错误!", FieldType = FieldType.Normal, IsKeyField = true,IsUnique = false, IsForeignKey = false, IsAllowNull = false, IsDbGenerated = false, Size = 16,  DbType = "varchar", IsNeedRecordModify = true)]
        public virtual string Equip_No
        {
            get
            {
                return this._Equip_No;
            }
            set
            {
                if (_Equip_No != value || (_Equip_No == null && value == null))
                {
                    if (!IsGetDataFromDB)
                    {
                        ModifyInfo modifyInfo = new ModifyInfo("Equip_Online", "Equip_No", _Equip_No, value, "varchar", "设备编号");   
                        this.OnPropertyChanging(modifyInfo);
                        this.OnEquip_NoChanging(modifyInfo);
                        this.SendPropertyChanging(modifyInfo);

                        this._Equip_No = value;

                        this.OnPropertyChanged(modifyInfo);
                        this.OnEquip_NoChanged(modifyInfo);
                        this.SendPropertyChanged(modifyInfo);      
                    }
                    else
                    {
                        _Equip_No = value;
                    }
                }
            }
        }
		
		/// <summary>
        /// 在线日期
        /// </summary>       
		[ModelField(Description = "在线日期", Type = typeof(string), ErrorMessage = "在线日期信息错误!", FieldType = FieldType.Normal, IsKeyField = true,IsUnique = false, IsForeignKey = false, IsAllowNull = false, IsDbGenerated = false, Size = 10,  DbType = "varchar", IsNeedRecordModify = true)]
        public virtual string Rpt_DateTime
        {
            get
            {
                return this._Rpt_DateTime;
            }
            set
            {
                if (_Rpt_DateTime != value || (_Rpt_DateTime == null && value == null))
                {
                    if (!IsGetDataFromDB)
                    {
                        ModifyInfo modifyInfo = new ModifyInfo("Equip_Online", "Rpt_DateTime", _Rpt_DateTime, value, "varchar", "在线日期");   
                        this.OnPropertyChanging(modifyInfo);
                        this.OnRpt_DateTimeChanging(modifyInfo);
                        this.SendPropertyChanging(modifyInfo);

                        this._Rpt_DateTime = value;

                        this.OnPropertyChanged(modifyInfo);
                        this.OnRpt_DateTimeChanged(modifyInfo);
                        this.SendPropertyChanged(modifyInfo);      
                    }
                    else
                    {
                        _Rpt_DateTime = value;
                    }
                }
            }
        }
		
		/// <summary>
        /// Online_00
        /// </summary>       
		[ModelField(Description = "Online_00", Type = typeof(byte), ErrorMessage = "Online_00信息错误!", FieldType = FieldType.Normal, IsKeyField = false,IsUnique = false, IsForeignKey = false, IsAllowNull = true, IsDbGenerated = false, Size = 1,  DbType = "tinyint", IsNeedRecordModify = true)]
        public virtual byte Online_00
        {
            get
            {
                return this._Online_00;
            }
            set
            {
                if ( _Online_00 != value || (_Online_00 == null && value == null))
                {
                    if (!IsGetDataFromDB)
                    {
                        ModifyInfo modifyInfo = new ModifyInfo("Equip_Online", "Online_00", _Online_00, value, "tinyint", "Online_00");   
                        this.OnPropertyChanging(modifyInfo);
                        this.OnOnline_00Changing(modifyInfo);
                        this.SendPropertyChanging(modifyInfo);

                        this._Online_00 = value;

                        this.OnPropertyChanged(modifyInfo);
                        this.OnOnline_00Changed(modifyInfo);
                        this.SendPropertyChanged(modifyInfo);      
                    }
                    else
                    {
                        _Online_00 = value;
                    }
                }
            }
        }
		
		/// <summary>
        /// Online_01
        /// </summary>       
		[ModelField(Description = "Online_01", Type = typeof(byte), ErrorMessage = "Online_01信息错误!", FieldType = FieldType.Normal, IsKeyField = false,IsUnique = false, IsForeignKey = false, IsAllowNull = true, IsDbGenerated = false, Size = 1,  DbType = "tinyint", IsNeedRecordModify = true)]
        public virtual byte Online_01
        {
            get
            {
                return this._Online_01;
            }
            set
            {
                if (_Online_01 != value || (_Online_01 == null && value == null))
                {
                    if (!IsGetDataFromDB)
                    {
                        ModifyInfo modifyInfo = new ModifyInfo("Equip_Online", "Online_01", _Online_01, value, "tinyint", "Online_01");   
                        this.OnPropertyChanging(modifyInfo);
                        this.OnOnline_01Changing(modifyInfo);
                        this.SendPropertyChanging(modifyInfo);

                        this._Online_01 = value;

                        this.OnPropertyChanged(modifyInfo);
                        this.OnOnline_01Changed(modifyInfo);
                        this.SendPropertyChanged(modifyInfo);      
                    }
                    else
                    {
                        _Online_01 = value;
                    }
                }
            }
        }
		
		/// <summary>
        /// Online_02
        /// </summary>       
		[ModelField(Description = "Online_02", Type = typeof(byte), ErrorMessage = "Online_02信息错误!", FieldType = FieldType.Normal, IsKeyField = false,IsUnique = false, IsForeignKey = false, IsAllowNull = true, IsDbGenerated = false, Size = 1,  DbType = "tinyint", IsNeedRecordModify = true)]
        public virtual byte Online_02
        {
            get
            {
                return this._Online_02;
            }
            set
            {
                if (_Online_02 != value || (_Online_02 == null && value == null))
                {
                    if (!IsGetDataFromDB)
                    {
                        ModifyInfo modifyInfo = new ModifyInfo("Equip_Online", "Online_02", _Online_02, value, "tinyint", "Online_02");   
                        this.OnPropertyChanging(modifyInfo);
                        this.OnOnline_02Changing(modifyInfo);
                        this.SendPropertyChanging(modifyInfo);

                        this._Online_02 = value;

                        this.OnPropertyChanged(modifyInfo);
                        this.OnOnline_02Changed(modifyInfo);
                        this.SendPropertyChanged(modifyInfo);      
                    }
                    else
                    {
                        _Online_02 = value;
                    }
                }
            }
        }
		
		/// <summary>
        /// Online_03
        /// </summary>       
		[ModelField(Description = "Online_03", Type = typeof(byte), ErrorMessage = "Online_03信息错误!", FieldType = FieldType.Normal, IsKeyField = false,IsUnique = false, IsForeignKey = false, IsAllowNull = true, IsDbGenerated = false, Size = 1,  DbType = "tinyint", IsNeedRecordModify = true)]
        public virtual byte Online_03
        {
            get
            {
                return this._Online_03;
            }
            set
            {
                if (_Online_03 != value || (_Online_03 == null && value == null))
                {
                    if (!IsGetDataFromDB)
                    {
                        ModifyInfo modifyInfo = new ModifyInfo("Equip_Online", "Online_03", _Online_03, value, "tinyint", "Online_03");   
                        this.OnPropertyChanging(modifyInfo);
                        this.OnOnline_03Changing(modifyInfo);
                        this.SendPropertyChanging(modifyInfo);

                        this._Online_03 = value;

                        this.OnPropertyChanged(modifyInfo);
                        this.OnOnline_03Changed(modifyInfo);
                        this.SendPropertyChanged(modifyInfo);      
                    }
                    else
                    {
                        _Online_03 = value;
                    }
                }
            }
        }
		
		/// <summary>
        /// Online_04
        /// </summary>       
		[ModelField(Description = "Online_04", Type = typeof(byte), ErrorMessage = "Online_04信息错误!", FieldType = FieldType.Normal, IsKeyField = false,IsUnique = false, IsForeignKey = false, IsAllowNull = true, IsDbGenerated = false, Size = 1,  DbType = "tinyint", IsNeedRecordModify = true)]
        public virtual byte Online_04
        {
            get
            {
                return this._Online_04;
            }
            set
            {
                if (_Online_04 != value || (_Online_04 == null && value == null))
                {
                    if (!IsGetDataFromDB)
                    {
                        ModifyInfo modifyInfo = new ModifyInfo("Equip_Online", "Online_04", _Online_04, value, "tinyint", "Online_04");   
                        this.OnPropertyChanging(modifyInfo);
                        this.OnOnline_04Changing(modifyInfo);
                        this.SendPropertyChanging(modifyInfo);

                        this._Online_04 = value;

                        this.OnPropertyChanged(modifyInfo);
                        this.OnOnline_04Changed(modifyInfo);
                        this.SendPropertyChanged(modifyInfo);      
                    }
                    else
                    {
                        _Online_04 = value;
                    }
                }
            }
        }
		
		/// <summary>
        /// Online_05
        /// </summary>       
		[ModelField(Description = "Online_05", Type = typeof(byte), ErrorMessage = "Online_05信息错误!", FieldType = FieldType.Normal, IsKeyField = false,IsUnique = false, IsForeignKey = false, IsAllowNull = true, IsDbGenerated = false, Size = 1,  DbType = "tinyint", IsNeedRecordModify = true)]
        public virtual byte Online_05
        {
            get
            {
                return this._Online_05;
            }
            set
            {
                if (_Online_05 != value || (_Online_05 == null && value == null))
                {
                    if (!IsGetDataFromDB)
                    {
                        ModifyInfo modifyInfo = new ModifyInfo("Equip_Online", "Online_05", _Online_05, value, "tinyint", "Online_05");   
                        this.OnPropertyChanging(modifyInfo);
                        this.OnOnline_05Changing(modifyInfo);
                        this.SendPropertyChanging(modifyInfo);

                        this._Online_05 = value;

                        this.OnPropertyChanged(modifyInfo);
                        this.OnOnline_05Changed(modifyInfo);
                        this.SendPropertyChanged(modifyInfo);      
                    }
                    else
                    {
                        _Online_05 = value;
                    }
                }
            }
        }
		
		/// <summary>
        /// Online_06
        /// </summary>       
		[ModelField(Description = "Online_06", Type = typeof(byte), ErrorMessage = "Online_06信息错误!", FieldType = FieldType.Normal, IsKeyField = false,IsUnique = false, IsForeignKey = false, IsAllowNull = true, IsDbGenerated = false, Size = 1,  DbType = "tinyint", IsNeedRecordModify = true)]
        public virtual byte Online_06
        {
            get
            {
                return this._Online_06;
            }
            set
            {
                if (_Online_06 != value || (_Online_06 == null && value == null))
                {
                    if (!IsGetDataFromDB)
                    {
                        ModifyInfo modifyInfo = new ModifyInfo("Equip_Online", "Online_06", _Online_06, value, "tinyint", "Online_06");   
                        this.OnPropertyChanging(modifyInfo);
                        this.OnOnline_06Changing(modifyInfo);
                        this.SendPropertyChanging(modifyInfo);

                        this._Online_06 = value;

                        this.OnPropertyChanged(modifyInfo);
                        this.OnOnline_06Changed(modifyInfo);
                        this.SendPropertyChanged(modifyInfo);      
                    }
                    else
                    {
                        _Online_06 = value;
                    }
                }
            }
        }
		
		/// <summary>
        /// Online_07
        /// </summary>       
		[ModelField(Description = "Online_07", Type = typeof(byte), ErrorMessage = "Online_07信息错误!", FieldType = FieldType.Normal, IsKeyField = false,IsUnique = false, IsForeignKey = false, IsAllowNull = true, IsDbGenerated = false, Size = 1,  DbType = "tinyint", IsNeedRecordModify = true)]
        public virtual byte Online_07
        {
            get
            {
                return this._Online_07;
            }
            set
            {
                if (_Online_07 != value || (_Online_07 == null && value == null))
                {
                    if (!IsGetDataFromDB)
                    {
                        ModifyInfo modifyInfo = new ModifyInfo("Equip_Online", "Online_07", _Online_07, value, "tinyint", "Online_07");   
                        this.OnPropertyChanging(modifyInfo);
                        this.OnOnline_07Changing(modifyInfo);
                        this.SendPropertyChanging(modifyInfo);

                        this._Online_07 = value;

                        this.OnPropertyChanged(modifyInfo);
                        this.OnOnline_07Changed(modifyInfo);
                        this.SendPropertyChanged(modifyInfo);      
                    }
                    else
                    {
                        _Online_07 = value;
                    }
                }
            }
        }
		
		/// <summary>
        /// Online_08
        /// </summary>       
		[ModelField(Description = "Online_08", Type = typeof(byte), ErrorMessage = "Online_08信息错误!", FieldType = FieldType.Normal, IsKeyField = false,IsUnique = false, IsForeignKey = false, IsAllowNull = true, IsDbGenerated = false, Size = 1,  DbType = "tinyint", IsNeedRecordModify = true)]
        public virtual byte Online_08
        {
            get
            {
                return this._Online_08;
            }
            set
            {
                if (_Online_08 != value || (_Online_08 == null && value == null))
                {
                    if (!IsGetDataFromDB)
                    {
                        ModifyInfo modifyInfo = new ModifyInfo("Equip_Online", "Online_08", _Online_08, value, "tinyint", "Online_08");   
                        this.OnPropertyChanging(modifyInfo);
                        this.OnOnline_08Changing(modifyInfo);
                        this.SendPropertyChanging(modifyInfo);

                        this._Online_08 = value;

                        this.OnPropertyChanged(modifyInfo);
                        this.OnOnline_08Changed(modifyInfo);
                        this.SendPropertyChanged(modifyInfo);      
                    }
                    else
                    {
                        _Online_08 = value;
                    }
                }
            }
        }
		
		/// <summary>
        /// Online_09
        /// </summary>       
		[ModelField(Description = "Online_09", Type = typeof(byte), ErrorMessage = "Online_09信息错误!", FieldType = FieldType.Normal, IsKeyField = false,IsUnique = false, IsForeignKey = false, IsAllowNull = true, IsDbGenerated = false, Size = 1,  DbType = "tinyint", IsNeedRecordModify = true)]
        public virtual byte Online_09
        {
            get
            {
                return this._Online_09;
            }
            set
            {
                if (_Online_09 != value || (_Online_09 == null && value == null))
                {
                    if (!IsGetDataFromDB)
                    {
                        ModifyInfo modifyInfo = new ModifyInfo("Equip_Online", "Online_09", _Online_09, value, "tinyint", "Online_09");   
                        this.OnPropertyChanging(modifyInfo);
                        this.OnOnline_09Changing(modifyInfo);
                        this.SendPropertyChanging(modifyInfo);

                        this._Online_09 = value;

                        this.OnPropertyChanged(modifyInfo);
                        this.OnOnline_09Changed(modifyInfo);
                        this.SendPropertyChanged(modifyInfo);      
                    }
                    else
                    {
                        _Online_09 = value;
                    }
                }
            }
        }
		
		/// <summary>
        /// Online_10
        /// </summary>       
		[ModelField(Description = "Online_10", Type = typeof(byte), ErrorMessage = "Online_10信息错误!", FieldType = FieldType.Normal, IsKeyField = false,IsUnique = false, IsForeignKey = false, IsAllowNull = true, IsDbGenerated = false, Size = 1,  DbType = "tinyint", IsNeedRecordModify = true)]
        public virtual byte Online_10
        {
            get
            {
                return this._Online_10;
            }
            set
            {
                if (_Online_10 != value || (_Online_10 == null && value == null))
                {
                    if (!IsGetDataFromDB)
                    {
                        ModifyInfo modifyInfo = new ModifyInfo("Equip_Online", "Online_10", _Online_10, value, "tinyint", "Online_10");   
                        this.OnPropertyChanging(modifyInfo);
                        this.OnOnline_10Changing(modifyInfo);
                        this.SendPropertyChanging(modifyInfo);

                        this._Online_10 = value;

                        this.OnPropertyChanged(modifyInfo);
                        this.OnOnline_10Changed(modifyInfo);
                        this.SendPropertyChanged(modifyInfo);      
                    }
                    else
                    {
                        _Online_10 = value;
                    }
                }
            }
        }
		
		/// <summary>
        /// Online_11
        /// </summary>       
		[ModelField(Description = "Online_11", Type = typeof(byte), ErrorMessage = "Online_11信息错误!", FieldType = FieldType.Normal, IsKeyField = false,IsUnique = false, IsForeignKey = false, IsAllowNull = true, IsDbGenerated = false, Size = 1,  DbType = "tinyint", IsNeedRecordModify = true)]
        public virtual byte Online_11
        {
            get
            {
                return this._Online_11;
            }
            set
            {
                if (_Online_11 != value || (_Online_11 == null && value == null))
                {
                    if (!IsGetDataFromDB)
                    {
                        ModifyInfo modifyInfo = new ModifyInfo("Equip_Online", "Online_11", _Online_11, value, "tinyint", "Online_11");   
                        this.OnPropertyChanging(modifyInfo);
                        this.OnOnline_11Changing(modifyInfo);
                        this.SendPropertyChanging(modifyInfo);

                        this._Online_11 = value;

                        this.OnPropertyChanged(modifyInfo);
                        this.OnOnline_11Changed(modifyInfo);
                        this.SendPropertyChanged(modifyInfo);      
                    }
                    else
                    {
                        _Online_11 = value;
                    }
                }
            }
        }
		
		/// <summary>
        /// Online_12
        /// </summary>       
		[ModelField(Description = "Online_12", Type = typeof(byte), ErrorMessage = "Online_12信息错误!", FieldType = FieldType.Normal, IsKeyField = false,IsUnique = false, IsForeignKey = false, IsAllowNull = true, IsDbGenerated = false, Size = 1,  DbType = "tinyint", IsNeedRecordModify = true)]
        public virtual byte Online_12
        {
            get
            {
                return this._Online_12;
            }
            set
            {
                if (_Online_12 != value || (_Online_12 == null && value == null))
                {
                    if (!IsGetDataFromDB)
                    {
                        ModifyInfo modifyInfo = new ModifyInfo("Equip_Online", "Online_12", _Online_12, value, "tinyint", "Online_12");   
                        this.OnPropertyChanging(modifyInfo);
                        this.OnOnline_12Changing(modifyInfo);
                        this.SendPropertyChanging(modifyInfo);

                        this._Online_12 = value;

                        this.OnPropertyChanged(modifyInfo);
                        this.OnOnline_12Changed(modifyInfo);
                        this.SendPropertyChanged(modifyInfo);      
                    }
                    else
                    {
                        _Online_12 = value;
                    }
                }
            }
        }
		
		/// <summary>
        /// Online_13
        /// </summary>       
		[ModelField(Description = "Online_13", Type = typeof(byte), ErrorMessage = "Online_13信息错误!", FieldType = FieldType.Normal, IsKeyField = false,IsUnique = false, IsForeignKey = false, IsAllowNull = true, IsDbGenerated = false, Size = 1,  DbType = "tinyint", IsNeedRecordModify = true)]
        public virtual byte Online_13
        {
            get
            {
                return this._Online_13;
            }
            set
            {
                if (_Online_13 != value || (_Online_13 == null && value == null))
                {
                    if (!IsGetDataFromDB)
                    {
                        ModifyInfo modifyInfo = new ModifyInfo("Equip_Online", "Online_13", _Online_13, value, "tinyint", "Online_13");   
                        this.OnPropertyChanging(modifyInfo);
                        this.OnOnline_13Changing(modifyInfo);
                        this.SendPropertyChanging(modifyInfo);

                        this._Online_13 = value;

                        this.OnPropertyChanged(modifyInfo);
                        this.OnOnline_13Changed(modifyInfo);
                        this.SendPropertyChanged(modifyInfo);      
                    }
                    else
                    {
                        _Online_13 = value;
                    }
                }
            }
        }
		
		/// <summary>
        /// Online_14
        /// </summary>       
		[ModelField(Description = "Online_14", Type = typeof(byte), ErrorMessage = "Online_14信息错误!", FieldType = FieldType.Normal, IsKeyField = false,IsUnique = false, IsForeignKey = false, IsAllowNull = true, IsDbGenerated = false, Size = 1,  DbType = "tinyint", IsNeedRecordModify = true)]
        public virtual byte Online_14
        {
            get
            {
                return this._Online_14;
            }
            set
            {
                if (_Online_14 != value || (_Online_14 == null && value == null))
                {
                    if (!IsGetDataFromDB)
                    {
                        ModifyInfo modifyInfo = new ModifyInfo("Equip_Online", "Online_14", _Online_14, value, "tinyint", "Online_14");   
                        this.OnPropertyChanging(modifyInfo);
                        this.OnOnline_14Changing(modifyInfo);
                        this.SendPropertyChanging(modifyInfo);

                        this._Online_14 = value;

                        this.OnPropertyChanged(modifyInfo);
                        this.OnOnline_14Changed(modifyInfo);
                        this.SendPropertyChanged(modifyInfo);      
                    }
                    else
                    {
                        _Online_14 = value;
                    }
                }
            }
        }
		
		/// <summary>
        /// Online_15
        /// </summary>       
		[ModelField(Description = "Online_15", Type = typeof(byte), ErrorMessage = "Online_15信息错误!", FieldType = FieldType.Normal, IsKeyField = false,IsUnique = false, IsForeignKey = false, IsAllowNull = true, IsDbGenerated = false, Size = 1,  DbType = "tinyint", IsNeedRecordModify = true)]
        public virtual byte Online_15
        {
            get
            {
                return this._Online_15;
            }
            set
            {
                if (_Online_15 != value || (_Online_15 == null && value == null))
                {
                    if (!IsGetDataFromDB)
                    {
                        ModifyInfo modifyInfo = new ModifyInfo("Equip_Online", "Online_15", _Online_15, value, "tinyint", "Online_15");   
                        this.OnPropertyChanging(modifyInfo);
                        this.OnOnline_15Changing(modifyInfo);
                        this.SendPropertyChanging(modifyInfo);

                        this._Online_15 = value;

                        this.OnPropertyChanged(modifyInfo);
                        this.OnOnline_15Changed(modifyInfo);
                        this.SendPropertyChanged(modifyInfo);      
                    }
                    else
                    {
                        _Online_15 = value;
                    }
                }
            }
        }
		
		/// <summary>
        /// Online_16
        /// </summary>       
		[ModelField(Description = "Online_16", Type = typeof(byte), ErrorMessage = "Online_16信息错误!", FieldType = FieldType.Normal, IsKeyField = false,IsUnique = false, IsForeignKey = false, IsAllowNull = true, IsDbGenerated = false, Size = 1,  DbType = "tinyint", IsNeedRecordModify = true)]
        public virtual byte Online_16
        {
            get
            {
                return this._Online_16;
            }
            set
            {
                if (_Online_16 != value || (_Online_16 == null && value == null))
                {
                    if (!IsGetDataFromDB)
                    {
                        ModifyInfo modifyInfo = new ModifyInfo("Equip_Online", "Online_16", _Online_16, value, "tinyint", "Online_16");   
                        this.OnPropertyChanging(modifyInfo);
                        this.OnOnline_16Changing(modifyInfo);
                        this.SendPropertyChanging(modifyInfo);

                        this._Online_16 = value;

                        this.OnPropertyChanged(modifyInfo);
                        this.OnOnline_16Changed(modifyInfo);
                        this.SendPropertyChanged(modifyInfo);      
                    }
                    else
                    {
                        _Online_16 = value;
                    }
                }
            }
        }
		
		/// <summary>
        /// Online_17
        /// </summary>       
		[ModelField(Description = "Online_17", Type = typeof(byte), ErrorMessage = "Online_17信息错误!", FieldType = FieldType.Normal, IsKeyField = false,IsUnique = false, IsForeignKey = false, IsAllowNull = true, IsDbGenerated = false, Size = 1,  DbType = "tinyint", IsNeedRecordModify = true)]
        public virtual byte Online_17
        {
            get
            {
                return this._Online_17;
            }
            set
            {
                if (_Online_17 != value || (_Online_17 == null && value == null))
                {
                    if (!IsGetDataFromDB)
                    {
                        ModifyInfo modifyInfo = new ModifyInfo("Equip_Online", "Online_17", _Online_17, value, "tinyint", "Online_17");   
                        this.OnPropertyChanging(modifyInfo);
                        this.OnOnline_17Changing(modifyInfo);
                        this.SendPropertyChanging(modifyInfo);

                        this._Online_17 = value;

                        this.OnPropertyChanged(modifyInfo);
                        this.OnOnline_17Changed(modifyInfo);
                        this.SendPropertyChanged(modifyInfo);      
                    }
                    else
                    {
                        _Online_17 = value;
                    }
                }
            }
        }
		
		/// <summary>
        /// Online_18
        /// </summary>       
		[ModelField(Description = "Online_18", Type = typeof(byte), ErrorMessage = "Online_18信息错误!", FieldType = FieldType.Normal, IsKeyField = false,IsUnique = false, IsForeignKey = false, IsAllowNull = true, IsDbGenerated = false, Size = 1,  DbType = "tinyint", IsNeedRecordModify = true)]
        public virtual byte Online_18
        {
            get
            {
                return this._Online_18;
            }
            set
            {
                if (_Online_18 != value || (_Online_18 == null && value == null))
                {
                    if (!IsGetDataFromDB)
                    {
                        ModifyInfo modifyInfo = new ModifyInfo("Equip_Online", "Online_18", _Online_18, value, "tinyint", "Online_18");   
                        this.OnPropertyChanging(modifyInfo);
                        this.OnOnline_18Changing(modifyInfo);
                        this.SendPropertyChanging(modifyInfo);

                        this._Online_18 = value;

                        this.OnPropertyChanged(modifyInfo);
                        this.OnOnline_18Changed(modifyInfo);
                        this.SendPropertyChanged(modifyInfo);      
                    }
                    else
                    {
                        _Online_18 = value;
                    }
                }
            }
        }
		
		/// <summary>
        /// Online_19
        /// </summary>       
		[ModelField(Description = "Online_19", Type = typeof(byte), ErrorMessage = "Online_19信息错误!", FieldType = FieldType.Normal, IsKeyField = false,IsUnique = false, IsForeignKey = false, IsAllowNull = true, IsDbGenerated = false, Size = 1,  DbType = "tinyint", IsNeedRecordModify = true)]
        public virtual byte Online_19
        {
            get
            {
                return this._Online_19;
            }
            set
            {
                if (_Online_19 != value || (_Online_19 == null && value == null))
                {
                    if (!IsGetDataFromDB)
                    {
                        ModifyInfo modifyInfo = new ModifyInfo("Equip_Online", "Online_19", _Online_19, value, "tinyint", "Online_19");   
                        this.OnPropertyChanging(modifyInfo);
                        this.OnOnline_19Changing(modifyInfo);
                        this.SendPropertyChanging(modifyInfo);

                        this._Online_19 = value;

                        this.OnPropertyChanged(modifyInfo);
                        this.OnOnline_19Changed(modifyInfo);
                        this.SendPropertyChanged(modifyInfo);      
                    }
                    else
                    {
                        _Online_19 = value;
                    }
                }
            }
        }
		
		/// <summary>
        /// Online_20
        /// </summary>       
		[ModelField(Description = "Online_20", Type = typeof(byte), ErrorMessage = "Online_20信息错误!", FieldType = FieldType.Normal, IsKeyField = false,IsUnique = false, IsForeignKey = false, IsAllowNull = true, IsDbGenerated = false, Size = 1,  DbType = "tinyint", IsNeedRecordModify = true)]
        public virtual byte Online_20
        {
            get
            {
                return this._Online_20;
            }
            set
            {
                if (_Online_20 != value || (_Online_20 == null && value == null))
                {
                    if (!IsGetDataFromDB)
                    {
                        ModifyInfo modifyInfo = new ModifyInfo("Equip_Online", "Online_20", _Online_20, value, "tinyint", "Online_20");   
                        this.OnPropertyChanging(modifyInfo);
                        this.OnOnline_20Changing(modifyInfo);
                        this.SendPropertyChanging(modifyInfo);

                        this._Online_20 = value;

                        this.OnPropertyChanged(modifyInfo);
                        this.OnOnline_20Changed(modifyInfo);
                        this.SendPropertyChanged(modifyInfo);      
                    }
                    else
                    {
                        _Online_20 = value;
                    }
                }
            }
        }
		
		/// <summary>
        /// Online_21
        /// </summary>       
		[ModelField(Description = "Online_21", Type = typeof(byte), ErrorMessage = "Online_21信息错误!", FieldType = FieldType.Normal, IsKeyField = false,IsUnique = false, IsForeignKey = false, IsAllowNull = true, IsDbGenerated = false, Size = 1,  DbType = "tinyint", IsNeedRecordModify = true)]
        public virtual byte Online_21
        {
            get
            {
                return this._Online_21;
            }
            set
            {
                if (_Online_21 != value || (_Online_21 == null && value == null))
                {
                    if (!IsGetDataFromDB)
                    {
                        ModifyInfo modifyInfo = new ModifyInfo("Equip_Online", "Online_21", _Online_21, value, "tinyint", "Online_21");   
                        this.OnPropertyChanging(modifyInfo);
                        this.OnOnline_21Changing(modifyInfo);
                        this.SendPropertyChanging(modifyInfo);

                        this._Online_21 = value;

                        this.OnPropertyChanged(modifyInfo);
                        this.OnOnline_21Changed(modifyInfo);
                        this.SendPropertyChanged(modifyInfo);      
                    }
                    else
                    {
                        _Online_21 = value;
                    }
                }
            }
        }
		
		/// <summary>
        /// Online_22
        /// </summary>       
		[ModelField(Description = "Online_22", Type = typeof(byte), ErrorMessage = "Online_22信息错误!", FieldType = FieldType.Normal, IsKeyField = false,IsUnique = false, IsForeignKey = false, IsAllowNull = true, IsDbGenerated = false, Size = 1,  DbType = "tinyint", IsNeedRecordModify = true)]
        public virtual byte Online_22
        {
            get
            {
                return this._Online_22;
            }
            set
            {
                if (_Online_22 != value || (_Online_22 == null && value == null))
                {
                    if (!IsGetDataFromDB)
                    {
                        ModifyInfo modifyInfo = new ModifyInfo("Equip_Online", "Online_22", _Online_22, value, "tinyint", "Online_22");   
                        this.OnPropertyChanging(modifyInfo);
                        this.OnOnline_22Changing(modifyInfo);
                        this.SendPropertyChanging(modifyInfo);

                        this._Online_22 = value;

                        this.OnPropertyChanged(modifyInfo);
                        this.OnOnline_22Changed(modifyInfo);
                        this.SendPropertyChanged(modifyInfo);      
                    }
                    else
                    {
                        _Online_22 = value;
                    }
                }
            }
        }
		
		/// <summary>
        /// Online_23
        /// </summary>       
		[ModelField(Description = "Online_23", Type = typeof(byte), ErrorMessage = "Online_23信息错误!", FieldType = FieldType.Normal, IsKeyField = false,IsUnique = false, IsForeignKey = false, IsAllowNull = true, IsDbGenerated = false, Size = 1,  DbType = "tinyint", IsNeedRecordModify = true)]
        public virtual byte Online_23
        {
            get
            {
                return this._Online_23;
            }
            set
            {
                if (_Online_23 != value || (_Online_23 == null && value == null))
                {
                    if (!IsGetDataFromDB)
                    {
                        ModifyInfo modifyInfo = new ModifyInfo("Equip_Online", "Online_23", _Online_23, value, "tinyint", "Online_23");   
                        this.OnPropertyChanging(modifyInfo);
                        this.OnOnline_23Changing(modifyInfo);
                        this.SendPropertyChanging(modifyInfo);

                        this._Online_23 = value;

                        this.OnPropertyChanged(modifyInfo);
                        this.OnOnline_23Changed(modifyInfo);
                        this.SendPropertyChanged(modifyInfo);      
                    }
                    else
                    {
                        _Online_23 = value;
                    }
                }
            }
        }
		
		/// <summary>
        /// Online_Total
        /// </summary>       
		[ModelField(Description = "Online_Total", Type = typeof(byte), ErrorMessage = "Online_Total信息错误!", FieldType = FieldType.Normal, IsKeyField = false,IsUnique = false, IsForeignKey = false, IsAllowNull = true, IsDbGenerated = false, Size = 1,  DbType = "tinyint", IsNeedRecordModify = true)]
        public virtual byte Online_Total
        {
            get
            {
                return this._Online_Total;
            }
            set
            {
                if (_Online_Total != value || (_Online_Total == null && value == null))
                {
                    if (!IsGetDataFromDB)
                    {
                        ModifyInfo modifyInfo = new ModifyInfo("Equip_Online", "Online_Total", _Online_Total, value, "tinyint", "Online_Total");   
                        this.OnPropertyChanging(modifyInfo);
                        this.OnOnline_TotalChanging(modifyInfo);
                        this.SendPropertyChanging(modifyInfo);

                        this._Online_Total = value;

                        this.OnPropertyChanged(modifyInfo);
                        this.OnOnline_TotalChanged(modifyInfo);
                        this.SendPropertyChanged(modifyInfo);      
                    }
                    else
                    {
                        _Online_Total = value;
                    }
                }
            }
        }
		
		/// <summary>
        /// Ext
        /// </summary>       
		[ModelField(Description = "Ext", Type = typeof(string), ErrorMessage = "Ext信息错误!", FieldType = FieldType.Normal, IsKeyField = false,IsUnique = false, IsForeignKey = false, IsAllowNull = true, IsDbGenerated = false, Size = 50,  DbType = "varchar", IsNeedRecordModify = true)]
        public virtual string Ext
        {
            get
            {
                return this._Ext;
            }
            set
            {
                if (_Ext != value || (_Ext == null && value == null))
                {
                    if (!IsGetDataFromDB)
                    {
                        ModifyInfo modifyInfo = new ModifyInfo("Equip_Online", "Ext", _Ext, value, "varchar", "Ext");   
                        this.OnPropertyChanging(modifyInfo);
                        this.OnExtChanging(modifyInfo);
                        this.SendPropertyChanging(modifyInfo);

                        this._Ext = value;

                        this.OnPropertyChanged(modifyInfo);
                        this.OnExtChanged(modifyInfo);
                        this.SendPropertyChanged(modifyInfo);      
                    }
                    else
                    {
                        _Ext = value;
                    }
                }
            }
        }
		#endregion 属性
				  
		#region 属性更改事件
		
		partial void OnEquip_NoChanging(ModifyInfo modifyInfo);//设备编号Equip_No改变之前发生
        partial void OnEquip_NoChanged(ModifyInfo modifyInfo);//设备编号Equip_No改变之后发生
		partial void OnRpt_DateTimeChanging(ModifyInfo modifyInfo);//在线日期Rpt_DateTime改变之前发生
        partial void OnRpt_DateTimeChanged(ModifyInfo modifyInfo);//在线日期Rpt_DateTime改变之后发生
		partial void OnOnline_00Changing(ModifyInfo modifyInfo);//Online_00Online_00改变之前发生
        partial void OnOnline_00Changed(ModifyInfo modifyInfo);//Online_00Online_00改变之后发生
		partial void OnOnline_01Changing(ModifyInfo modifyInfo);//Online_01Online_01改变之前发生
        partial void OnOnline_01Changed(ModifyInfo modifyInfo);//Online_01Online_01改变之后发生
		partial void OnOnline_02Changing(ModifyInfo modifyInfo);//Online_02Online_02改变之前发生
        partial void OnOnline_02Changed(ModifyInfo modifyInfo);//Online_02Online_02改变之后发生
		partial void OnOnline_03Changing(ModifyInfo modifyInfo);//Online_03Online_03改变之前发生
        partial void OnOnline_03Changed(ModifyInfo modifyInfo);//Online_03Online_03改变之后发生
		partial void OnOnline_04Changing(ModifyInfo modifyInfo);//Online_04Online_04改变之前发生
        partial void OnOnline_04Changed(ModifyInfo modifyInfo);//Online_04Online_04改变之后发生
		partial void OnOnline_05Changing(ModifyInfo modifyInfo);//Online_05Online_05改变之前发生
        partial void OnOnline_05Changed(ModifyInfo modifyInfo);//Online_05Online_05改变之后发生
		partial void OnOnline_06Changing(ModifyInfo modifyInfo);//Online_06Online_06改变之前发生
        partial void OnOnline_06Changed(ModifyInfo modifyInfo);//Online_06Online_06改变之后发生
		partial void OnOnline_07Changing(ModifyInfo modifyInfo);//Online_07Online_07改变之前发生
        partial void OnOnline_07Changed(ModifyInfo modifyInfo);//Online_07Online_07改变之后发生
		partial void OnOnline_08Changing(ModifyInfo modifyInfo);//Online_08Online_08改变之前发生
        partial void OnOnline_08Changed(ModifyInfo modifyInfo);//Online_08Online_08改变之后发生
		partial void OnOnline_09Changing(ModifyInfo modifyInfo);//Online_09Online_09改变之前发生
        partial void OnOnline_09Changed(ModifyInfo modifyInfo);//Online_09Online_09改变之后发生
		partial void OnOnline_10Changing(ModifyInfo modifyInfo);//Online_10Online_10改变之前发生
        partial void OnOnline_10Changed(ModifyInfo modifyInfo);//Online_10Online_10改变之后发生
		partial void OnOnline_11Changing(ModifyInfo modifyInfo);//Online_11Online_11改变之前发生
        partial void OnOnline_11Changed(ModifyInfo modifyInfo);//Online_11Online_11改变之后发生
		partial void OnOnline_12Changing(ModifyInfo modifyInfo);//Online_12Online_12改变之前发生
        partial void OnOnline_12Changed(ModifyInfo modifyInfo);//Online_12Online_12改变之后发生
		partial void OnOnline_13Changing(ModifyInfo modifyInfo);//Online_13Online_13改变之前发生
        partial void OnOnline_13Changed(ModifyInfo modifyInfo);//Online_13Online_13改变之后发生
		partial void OnOnline_14Changing(ModifyInfo modifyInfo);//Online_14Online_14改变之前发生
        partial void OnOnline_14Changed(ModifyInfo modifyInfo);//Online_14Online_14改变之后发生
		partial void OnOnline_15Changing(ModifyInfo modifyInfo);//Online_15Online_15改变之前发生
        partial void OnOnline_15Changed(ModifyInfo modifyInfo);//Online_15Online_15改变之后发生
		partial void OnOnline_16Changing(ModifyInfo modifyInfo);//Online_16Online_16改变之前发生
        partial void OnOnline_16Changed(ModifyInfo modifyInfo);//Online_16Online_16改变之后发生
		partial void OnOnline_17Changing(ModifyInfo modifyInfo);//Online_17Online_17改变之前发生
        partial void OnOnline_17Changed(ModifyInfo modifyInfo);//Online_17Online_17改变之后发生
		partial void OnOnline_18Changing(ModifyInfo modifyInfo);//Online_18Online_18改变之前发生
        partial void OnOnline_18Changed(ModifyInfo modifyInfo);//Online_18Online_18改变之后发生
		partial void OnOnline_19Changing(ModifyInfo modifyInfo);//Online_19Online_19改变之前发生
        partial void OnOnline_19Changed(ModifyInfo modifyInfo);//Online_19Online_19改变之后发生
		partial void OnOnline_20Changing(ModifyInfo modifyInfo);//Online_20Online_20改变之前发生
        partial void OnOnline_20Changed(ModifyInfo modifyInfo);//Online_20Online_20改变之后发生
		partial void OnOnline_21Changing(ModifyInfo modifyInfo);//Online_21Online_21改变之前发生
        partial void OnOnline_21Changed(ModifyInfo modifyInfo);//Online_21Online_21改变之后发生
		partial void OnOnline_22Changing(ModifyInfo modifyInfo);//Online_22Online_22改变之前发生
        partial void OnOnline_22Changed(ModifyInfo modifyInfo);//Online_22Online_22改变之后发生
		partial void OnOnline_23Changing(ModifyInfo modifyInfo);//Online_23Online_23改变之前发生
        partial void OnOnline_23Changed(ModifyInfo modifyInfo);//Online_23Online_23改变之后发生
		partial void OnOnline_TotalChanging(ModifyInfo modifyInfo);//Online_TotalOnline_Total改变之前发生
        partial void OnOnline_TotalChanged(ModifyInfo modifyInfo);//Online_TotalOnline_Total改变之后发生
		partial void OnExtChanging(ModifyInfo modifyInfo);//ExtExt改变之前发生
        partial void OnExtChanged(ModifyInfo modifyInfo);//ExtExt改变之后发生
		
		#endregion		
		public virtual string DetailURI { get; set; }
        public virtual string DetailHTMLURI { get; set; }
		public virtual string ManageEditURI {get; set;}
		public virtual string ManageDetailURI {get; set;}
		public override void OnLoaded()
        {
            base.OnLoaded();	
			DetailURI = ZModel.InitDetailURI("Equip_Online", "Equip_No", Equip_No);
            DetailHTMLURI = ZModel.InitDetailHTMLURI("Equip_Online", "Equip_No", Equip_No);		
			ManageEditURI = ZModel.InitMEditURI("Equip_Online", "Equip_No", Equip_No);	
		 	ManageDetailURI = ZModel.InitMDetailURI("Equip_Online", "Equip_No", Equip_No);	
			OnModelLoaded();
        }
		
		partial void OnModelCreated();
        partial void OnModelLoaded();
	}	
}